<ul class="subcategories" id="sub_articles" <?php echo ($sf_context->getModuleName()!='releases')?'style="display:none;"':''?>>
	<?php if(!empty($categories)):?>
		<?php foreach($categories as $Category):?>
			<li><?php echo link_to($Category['title'],'view_releases_category',$Category);?></li>
		<?php endforeach;?>
	<?php else:?>
		<li>Нет категорий</li>
	<?php endif;?>
</ul>